package com.lty.springmvc;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloWorldHandler {
	@Autowired
	private UserService userService;
	
	public HelloWorldHandler() {
		System.out.println("HelloWorldHandler's constructor...");
	}

	@RequestMapping("/helloworld")
	public String helloWorld(){
		System.out.println("Hello World!");
//		System.out.println(userService);
		return "success";
	}
}
